package org.ddd.book.domain.book.event;

import lombok.Getter;
import lombok.Setter;
import org.ddd.book.domain.EventType;
import org.ddd.book.domain.IBaseEvent;
import org.ddd.book.domain.SubEventType;

import java.io.Serializable;

/**
 * 图书馆被移除事件
 */
@Setter
@Getter
public class BookshelfRemoveEvent implements IBaseEvent {
    private Long bookshelfId;

    @Override
    public Serializable id() {
        return bookshelfId;
    }

    @Override
    public EventType eventType() {
        return EventType.BOOK;
    }

    @Override
    public SubEventType subEventType() {
        return SubEventType.BOOKSHELF_REMOVE;
    }
}
